package com.kfm.loginIp.exception;

/**
 * @author Aurora雪
 */
public class UserException extends Exception {
    /**
     * 错误码
     * 1001: 用户名或密码错误
     */
    private int code;

    public UserException() {
        super();
    }

    public UserException(String message) {
        super(message);
    }

    public UserException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserException(int code, String message) {
        super(message);
        this.code = code;
    }

    public UserException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }


    public int getCode() {
        return code;
    }
}

